package com.shrct.businessprocess.project.impl;

import com.shrct.businessprocess.project.RCSalesCommissionYearConfig;
import com.shrct.businessprocess.project.RCSalesCommissionYearConfigDAO;
import com.shrct.businessprocess.project.events.RCSalesCommissionYearConfigEventsManager;
import edu.fudan.mylang.pf.BaseDAOService;
import edu.fudan.mylang.pf.IGenericQuery;
import java.util.Collection;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("com.shrct.businessprocess.project.RCSalesCommissionYearConfigDAO")
public class RCSalesCommissionYearConfigDAOImpl extends BaseDAOService<RCSalesCommissionYearConfig> implements RCSalesCommissionYearConfigDAO {
  @Autowired
  private RCSalesCommissionYearConfigEventsManager eventsManager;
  
  public Collection<RCSalesCommissionYearConfig> getAllYearConfigs() {IGenericQuery<RCSalesCommissionYearConfig> query=getObjectFactory().createGenericQuery(RCSalesCommissionYearConfig.class,"select e from com.shrct.businessprocess.project.impl.RCSalesCommissionYearConfigImpl as e   where  e.active = 1  order by e.overallConfig.year DESC    ");
    Collection<RCSalesCommissionYearConfig> _list = query.list();
    return _list;
  }
}
